//
//  MainViewController.swift
//  G001
//
//  Created by remy on 2023/1/12.
//

import UIKit

class MainViewController: UIViewController {

    var stage: MainScene!
    
    override func loadView() {
        self.view = SKView(frame: UIScreen.main.bounds)
    }
    
    override func viewDidLoad() {
        super.viewDidLoad()
        
        guard let view = self.view as? SKView else { return }
        view.ignoresSiblingOrder = true
        #if DEBUG
        view.showsDrawCount = true
        view.showsNodeCount = true
        view.showsFPS = true
        view.showsPhysics = true
        #endif
        
        stage = MainScene(size: view.bounds.size)
        view.presentScene(stage)
    }

    override var shouldAutorotate: Bool {
        return false
    }

    override var supportedInterfaceOrientations: UIInterfaceOrientationMask {
        return .portrait
    }

    override var prefersStatusBarHidden: Bool {
        return true
    }
}
